package edu.uoc.tdp.pac3.common;

import java.rmi.RemoteException;
import java.util.List;

import edu.uoc.tdp.pac3.beans.*;

public interface StockManagerInterface extends java.rmi.Remote {
	public String test() throws RemoteException;
	
	//Pure business logic
	public void addNewStock(String resourceName, int newQuantity) throws RemoteException;
	public int addResourceRequest(String nomAula, String nomRecurs, int quant) throws RemoteException;
	public void updateStock(int idRecurs, int quant) throws RemoteException;
	public void finalizeResourceRequest(int quantToDelete, int idResource, int idRoom) throws Exception;
	
	//For ComboBoxes:
	public List<Resource> getAllResources() throws RemoteException;
	public List<Room> getAllRooms() throws RemoteException;
	
	//For tables
	public List<ResourceRequest> getAllResourceRequests() throws RemoteException;

	public List<ResourceRequest> getNoPossibleRequests() throws RemoteException;
	
	public String loadRoomNameById(int roomId) throws Exception;
	public String loadResourceNameById(int idResource) throws Exception;
}
